<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            margin:0;
            padding:0;
        }
        table{
            width:400px;
            border-collapse: collapse;
            margin: 0 auto;
        }
        th{
            background-color: #333;
            color: #fff;
            padding: 10px;
            text-align: center;
        }
        td{
            border: 1px solid #ddd;
            padding: 8px;
            text-align: center;
        }
        tbody tr:nth-child(even){
            background-color: #f2f2f2;
        }
    </style>
</head>
<body>
    <table>
        <thead>
            <tr>
                <th>编号</th>
                <th>科目</th>
                <th>成绩</th>
                <th>操作</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td>1</td>
                <td>语文</td>
                <td>45</td>
                <td><a href="#">删除</a></td>
            </tr>
            <tr>
                <td>1</td>
                <td>语文</td>
                <td>45</td>
                <td><a href="#">删除</a></td>
            </tr>
            <tr>
                <td>1</td>
                <td>语文</td>
                <td>45</td>
                <td><a href="#">删除</a></td>
            </tr>
            <tr>
                <td>1</td>
                <td>语文</td>
                <td>45</td>
                <td><a href="#">删除</a></td>
            </tr>
            <tr>
                <td>1</td>
                <td>语文</td>
                <td>45</td>
                <td><a href="#">删除</a></td>
            </tr>
        </tbody>
        <tfoot>
            <tr>
                <td colspan="4" style="text-align: right;">
                    总分:246 &nbsp;&nbsp;平均分:82
                </td>
            </tr>
        </tfoot>
    </table>
</body>
</html>